package com.canyou.oa.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 组件查看权限表
 * </p>
 *
 * @author canyou
 * @since 2021-07-05
 */
@Data
@TableName("oa_item_perm")
@ApiModel(value="ItemPerm对象", description="组件查看权限表")
public class ItemPerm {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "表单项目id")
    @TableField("item_id")
    private Long itemId;

    @ApiModelProperty(value = "权限范围id")
    @TableField("perm_id")
    private Long permId;

    @ApiModelProperty(value = "权限类型(1.公司, 2. 部门, 3. 角色, 4. 用户)")
    @TableField("perm_type")
    private Integer permType;

}
